package com.lizi.spring;

import java.util.List;
import java.util.Map;

public   abstract class AbstractOrderHandle {

	protected abstract int getItemPrice(Map item);
	protected abstract int getSpendingLimit(int customId);
	protected abstract int place(int customId,int total,List<Map> items);
	
	public final void placeOrder(int customId,int total,List<Map> items){
		getItemPrice(items.get(0));
		getSpendingLimit(customId);
		place(customId, total, items);
	}
	
	
}
